--- src/Makefile.orig	Sat Feb 13 23:32:28 2010
+++ src/Makefile	Tue May 31 19:45:28 2011
@@ -99,16 +99,16 @@ LIBOSD		= $(OSD)/lib$(OSD).a
 LIBSSL		= -lssl -lcrypto $(LDFLAGS)
 LIBSQL		=
 ifeq ($(SQLITE), true)
-	LIBSQL		= -L/usr/local/lib -lsqlite3
+	LIBSQL		= -L${LOCALBASE}/lib -lsqlite3
 else
 	ifeq ($(sqlite), true)
-		LIBSQL          = -L/usr/local/lib -lsqlite3
+		LIBSQL          = -L${LOCALBASE}/lib -lsqlite3
 	else
 		ifeq ($(SQLITE), TRUE)
-			LIBSQL          = -L/usr/local/lib -lsqlite3
+			LIBSQL          = -L${LOCALBASE}/lib -lsqlite3
 		else
 			ifeq ($(sqlite), TRUE)
-				LIBSQL          = -L/usr/local/lib -lsqlite3
+				LIBSQL          = -L${LOCALBASE}/lib -lsqlite3
 			endif
 		endif
 	endif
